Smush\Core\Avif\Avif_Optimization A

Total Complexity 56
Dependencies 8
Dependents 2
Total lines 312
Lines of code 198
Logical lines of code 101
Comment lines 42
Methods 29
Properties 10

Methods 29

Method Rating Maintainability Complexity Lines of code
should_reoptimize()
S
58 6 16
should_optimize()
S
61 4 14
size_stats_from_response()
S
62 4 11
optimize()
S
55 3 20
is_file_converted()
S
66 4 8
make_meta()
S
62 3 11
has_converted_file()
S
64 3 10
get_size_stats()
S
71 2 6
get_sizes_meta()
S
71 2 6
get_meta()
S
72 2 6
get_stats()
S
72 2 6
should_optimize_size()
S
67 2 9
reset()
S
74 2 5
save()
S
67 2 8
update_from_response()
S
72 1 5
get_optimized_sizes_count()
S
80 1 3
get_errors()
S
81 1 3
get_sizes_to_convert()
S
81 1 3
delete_data()
S
76 1 4
__construct()
S
67 1 8
get_size_meta()
S
72 1 5
fetch_meta()
S
75 1 4
get_key()
S
81 1 3
prepare_size_stats()
S
73 1 5
prepare_stats()
S
68 1 7
size_meta_exists()
S
79 1 3
is_optimized()
S
80 1 3
get_name()
S
79 1 3
get_optimized_file_url()
S
80 1 3